package cn.DesignModel.state;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class EndState implements State{
    private Order order;

    public EndState(Order order) {
        this.order = order;
    }

    @Override
    public void orderCreate() {
        System.out.println("乘客下单，订单新建中...");
        // 改变状态(订单结束后可以开始新一轮叫单) End -> New
        order.setState(order.getNewState());
    }

    @Override
    public void orderCancel() {
        System.out.println("无可取消订单");
    }

    @Override
    public void orderMatch() {
        System.out.println("无可匹配订单");
    }

    @Override
    public void evaluation() {
        System.out.println("无可评价订单");
    }

}
